<?php

include "../../inc/inc.koneksi.php";
include "../../inc/logging.php";

$table = 'jumlah_spp';
$id = $_POST['cari'];
$text = "SELECT nominal FROM $table";
$sql = mysql_query($text);
$row = mysql_num_rows($sql);

note('QUERY: ' . $text);
note('ROW: ' . $row);
if ($row > 0) {
    while ($r = mysql_fetch_array($sql)) {
        note('JUMLAH: ' . $r['nominal']);
        $data['jml'] = $r['nominal'];
        note('DATA: ' . json_encode($data));
        echo json_encode($data);
    }
} else {
    $data['jml'] = '';
    echo json_encode($data);
}

?>